package io.xxx.mario.risk;

import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 风控规则管理
 */
@Component
public class RiskManager {

    private final DefaultListableBeanFactory beanFactory;

    private final RedissonClient client;

    public RiskManager(ApplicationContext applicationContext, RedissonClient client) {
        GenericApplicationContext context = (GenericApplicationContext) applicationContext;
        this.beanFactory = (DefaultListableBeanFactory) context.getBeanFactory();
        this.client = client;
    }


}
